<?php 
/* SVN FILE: $Id$ */
/* AgendaPersona Test cases generated on: 2009-12-06 01:12:58 : 1260076078*/
App::import('Model', 'AgendaPersona');

class AgendaPersonaTestCase extends CakeTestCase {
	var $AgendaPersona = null;
	var $fixtures = array('app.agenda_persona', 'app.tipo', 'app.profesional');

	function startTest() {
		$this->AgendaPersona =& ClassRegistry::init('AgendaPersona');
	}

	function testAgendaPersonaInstance() {
		$this->assertTrue(is_a($this->AgendaPersona, 'AgendaPersona'));
	}

	function testAgendaPersonaFind() {
		$this->AgendaPersona->recursive = -1;
		$results = $this->AgendaPersona->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('AgendaPersona' => array(
			'id'  => 1,
			'tipo_id'  => 1,
			'profesional_id'  => 1,
			'fecha_creacion'  => 'Lorem ',
			'vigencia'  => 'Lorem ipsum dolor sit ame',
			'max_reserva'  => 1,
			'max_dias'  => 1,
			'obs_local'  => 'Lorem ipsum dolor sit amet',
			'obs_internet'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>